package com.ruoyi.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 流程定义明细对象 t_definition_detail
 * 
 * @author Gekor
 * @date 2021-07-19
 */
public class DefinitionDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 流程部署id */
    private String deploymentId;

    /** 部署时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "部署时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deployTime;
    /**
     * 流程定义对象
     */
    private DefinitionInfo definitionInfo;
    /**
     *  版本号 */
    private int version;

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public DefinitionInfo getDefinitionInfo() {
        return definitionInfo;
    }

    public void setDefinitionInfo(DefinitionInfo definitionInfo) {
        this.definitionInfo = definitionInfo;
    }

    public void setDeploymentId(String deploymentId)
    {
        this.deploymentId = deploymentId;
    }

    public String getDeploymentId() 
    {
        return deploymentId;
    }
    public void setDeployTime(Date deployTime) 
    {
        this.deployTime = deployTime;
    }

    public Date getDeployTime() 
    {
        return deployTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("definitionInfo", getDefinitionInfo())
            .append("deploymentId", getDeploymentId())
            .append("deployTime", getDeployTime())
            .toString();
    }
}
